<template>
<div class="boxmain">
 <div class="gonggao wow slideInUp">
        <h1><span>| 产品公告 </span></h1>
        <!-- <i>查看更多 ></i> -->
        <img src="http://img3.tqcaifu.com/list/gonggaoback1.png" alt="产品公告" class="wow bounceInU">
        <div>
            <el-row :gutter="20">
                <el-col :span="12" class="newslist">
                   <ul>
                      <li v-for="(item,index) in newbox" :key="index" v-if="index<5" class="wow slideInLeft"> 
                            <nuxt-link target="_blank" :to="'/gonggao/' + item.pid"><span><i class="dian"></i>{{item.name}}</span></nuxt-link>
                            <span class="time">{{item.createtime.slice(0,10)}}</span>
                        </li>  
                   </ul>
                </el-col>
                 <el-col :span="12" class="newslist">
                   <ul>
                      <li v-for="(item,index) in newbox" :key="index" v-if="index >=5 && index <= 10" class="wow slideInRight">
                            <nuxt-link target="_blank" :to="'/gonggao/' + item.pid"><span><i class="dian"></i>{{item.name}}</span></nuxt-link>
                            <span class="time">{{item.createtime.slice(0,10)}}</span>
                        </li>  
                   </ul>
                </el-col>
           </el-row>
        </div>
    </div>
</div>
   
</template>
<script>
export default {
  props: {
    newbox: {
      type: Array,
      default: function() {
        return [];
      }
    },
    
  }
};
</script>

<style scoped>
.boxmain{
  width: 100%;
  background: white;
}
.gonggao{
    width: 1200px;
    margin: 0 auto 0;
    background: #fff;
    padding: 30px 0;
}
/* .gonggao:hover{
  box-shadow: 0 0 20px #d9d9d9;
} */
.gonggao h1{
    display: flex;
    justify-content: space-between;
    padding: 10px;
    font-size: 22px;
    color: #333333;
    font-size: 22px;
    margin: 10px 0 16px;
    font-weight: bolder;
    text-align: left;
}
.gonggao h1 i{
    font-size: 14px;
    color: #333;
    margin: 8px 20px 0 0;
}
.gonggao img{
    width: 100%;
    height: 160px;
    margin-bottom: 10px;
}
.dian{
    display: inline-block;
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background:#cd9c54;
    vertical-align: middle;
    margin-right: 6px;
}
.newslist {
  overflow: hidden;
}
.newslist ul li a {
  display: inline-block;
  width: 70%;
}
.newslist ul li:hover {
  color: #cd9c54;
}
.newslist ul li {
  padding: 0 50px;
  font-size: 16px;
  color: #333;
  height: 40px;
  line-height: 40px;
  display: flex;
  justify-content: space-between;
}
.newslist ul li span:first-child {
  display: inline-block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
</style>
